package recharge

import (
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/schema"
)

const TableNameSmsRecharge = "recharge_sms"

// RechargeType 充值类型
type RechargeSms struct {
	schema.Model
	UserId           int64   `gorm:"type:bigint;not null;comment:用户id"`
	RechargeAmount   float64 `gorm:"type:decimal(20,4);not null;comment:充值金额"`
	OrderNo          string  `gorm:"type:varchar(1024);not null;comment:充值订单"`
	MatchStatus      string  `gorm:"type:varchar(64);not null;comment:匹配状态"`
	ReceivingBank    string  `gorm:"type:varchar(64);not null;comment:收款银行"`
	ReceivingAccount int32   `gorm:"type:tinyint;not null;comment:收款账户"`
	SmsId            int32   `gorm:"type:int;not null;comment:短信ID"`
	SmsType          int32   `gorm:"type:int;not null;comment:短信类型"`
	Sender           int32   `gorm:"type:int;not null;comment:发送者"`
	SmsContext       string  `gorm:"type:varchar(1024);not null;comment:短信内容"`
	SendTime         int32   `gorm:"type:int;not null;comment:发送时间"`
}

func (*RechargeSms) TableName() string {
	return TableNameSmsRecharge
}
